package com.xxx.baseapplication.adapter

import com.xxx.baseapplication.R
import com.xxx.baseapplication.databinding.ItemProjectBinding
import com.xxx.baseapplication.util.RouterUtil
import com.xxx.baseapplication.vo.ArticleVO
import com.xxx.mylibrary.base.DataBoundAdapter

class ProjectAdapter : DataBoundAdapter<ArticleVO, ItemProjectBinding>() {
    override val layoutId: Int
        get() = R.layout.item_project


    override fun initView(
        binding: ItemProjectBinding,
        item: ArticleVO
    ){
        binding.vo = item
        binding.root.setOnClickListener {
            RouterUtil.navWeb(item,it.context)
        }
    }

}